package com.example.basic.web.controller.admire;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.basic.core.result.Result;
import com.example.basic.core.result.ResultGenerator;
import com.example.basic.custom.Log;
import com.example.basic.web.model.admire.Admire;
import com.example.basic.web.model.basicData.BasicData;
import com.example.basic.web.service.admire.IAdmireService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 配置管理主记录 前端控制器
 * </p>
 */
@Api(value = "瞻仰厅", tags = {"瞻仰厅管理主记录"})
@RestController
@RequestMapping("/api/v1/byg/admire")
public class AdmireInfoController {

    @Autowired
    private IAdmireService admireService;

    @Log(title = "瞻仰厅管理", description = "瞻仰厅列表")
    @ApiOperation(value="瞻仰厅列表",notes = "瞻仰厅列表")
    @GetMapping("/queryList")
    public Result<List<Admire>> queryList() {
        return ResultGenerator.genSuccessResult(admireService.queryList());
    }
}
